x[i, j, drop] x[i, j] <- value x[[i, j]] x[[i, j]] <- value
Notice too that the use of x[[j]] is one place that data frames differ from ordinary S matrices. The k-th element of x in the matrix sense would be defined by the S rule of matrix element ordering as x[[i, j]] where i <- 1 + mod(k-1, r); j <- ceiling(k/r) and r is the number of rows of the matrix.
solder[sample(900,10), ] attach(fuel.frame); fuel.frame[, "h"] <- Weight/Disp.